GtkFontChooser: Use GtkBox instead of GtkVBox as base class.
authorAlberto Ruiz <aruiz@gnome.org>
Sun, 10 Jul 2011 19:30:00 +0000 (20:30 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 15 Aug 2011 22:57:55 +0000 (18:57 -0400)
gtk/gtkfontchooser.c
gtk/gtkfontchooser.h

index a69e68cdfba95e150623f9164b54da0f3555b330..8195db74d519be45b6347181595bad2df5c6de5f 100644 (file)
@@ -43,7 +43,7 @@
 #include "gtkstock.h"
 #include "gtktreeselection.h"
 #include "gtktreeview.h"
-#include "gtkvbox.h"
+#include "gtkbox.h"
 #include "gtkscrolledwindow.h"
 #include "gtkintl.h"
 #include "gtkaccessible.h"
@@ -162,7 +162,7 @@ static void  gtk_font_chooser_ref_face           (GtkFontChooser *fontchooser,
 
 static void gtk_font_chooser_bootstrap_fontlist (GtkFontChooser *fontchooser);
 
-G_DEFINE_TYPE (GtkFontChooser, gtk_font_chooser, GTK_TYPE_VBOX)
+G_DEFINE_TYPE (GtkFontChooser, gtk_font_chooser, GTK_TYPE_BOX)
 
 static void
 gtk_font_chooser_class_init (GtkFontChooserClass *klass)
@@ -1138,7 +1138,7 @@ gtk_font_chooser_set_font_name (GtkFontChooser *fontchooser,
  *
  * Since: 3.2
  */
-G_CONST_RETURN gchar*
+const gchar*
 gtk_font_chooser_get_preview_text (GtkFontChooser *fontchooser)
 {
   g_return_val_if_fail (GTK_IS_FONT_CHOOSER (fontchooser), NULL);
index 5634afc962c25887a1a5ff74b593267e635df221..ec480f7e6018f71a80537a47fe4ab9701f7c2188 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef __GTK_FONT_CHOOSER_H__
 #define __GTK_FONT_CHOOSER_H__
 
-#include <gtk/gtkvbox.h>
+#include <gtk/gtkbox.h>
 
 G_BEGIN_DECLS
 
@@ -46,7 +46,7 @@ typedef struct _GtkFontChooserClass         GtkFontChooserClass;
 
 struct _GtkFontChooser
 {
-  GtkVBox parent_instance;
+  GtkBox parent_instance;
 
   /*< private >*/
   GtkFontChooserPrivate *priv;
@@ -54,7 +54,7 @@ struct _GtkFontChooser
 
 struct _GtkFontChooserClass
 {
-  GtkVBoxClass parent_class;
+  GtkBoxClass parent_class;
 
   /* Padding for future expansion */
   void (*_gtk_reserved1) (void);